package com.chixing.controller;


import com.chixing.service.IDishTypeService;
import com.chixing.util.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author smith
 * @since 2025-05-21
 */
@RestController
@RequestMapping("/dishType")
public class DishTypeController {
    @Autowired
    private IDishTypeService typeService;

    @GetMapping
    public Result getAll(){
        return typeService.getAll();
    }

}
